<template>
	<view>
		<view class="list">
			<view class="content">
				<view class="top">
					<text>{{list.address}}</text>
					<text>{{list.typename}}</text>
					<text>{{list.statename}}</text>
				</view>
				<view class="font">
					<text>{{list.content}}</text>
				</view>
				<view class="img">
					<image v-for="item in list.images" :src="item.url"></image>
				</view>
				<view class="bottom">
					{{list.addtime}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {Repairs} from '../../static/api/apis.js'
	export default {
		data() {
			return {
				id:'',
				list:[]
			}
		},
		methods: {
			async details(){
				let res = await Repairs.details({id:this.id})
				console.log(res.data)
				if(res.errCode==10000){
					this.list = res.data
				}
			}
		},
		onLoad(option) {
			this.id = option.id
			this.details()
		}
	}
</script>

<style lang="less" scoped>
@import url("../../static/css/Repairs/details.less");
</style>
